package io.mft.commons.function.response;

import java.io.Serializable;

import cn.hutool.core.util.ObjectUtil;

public class DsName implements Serializable {
	public final static String DEFAULT_RESULT_KEY = "results";
	/**
	 * @说明：TODO
	 * @字段名称 serialVersionUID
	 */

	protected static final long serialVersionUID = -6834146768490418823L;
	/**
	 * @说明：TODO
	 * @字段名称 serialVersionUID
	 */

	private String name;
	private DsType type;
	private String mainOutputDsKey = DEFAULT_RESULT_KEY;
	private String aliasName;

	private DsValueType valueType=DsValueType.object;

	
	public DsValueType getValueType() {
		return valueType;
	}
	
	public void setValueType(DsValueType valueType) {
		this.valueType = valueType;
	}
	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	public String getAliasName() {
		if (ObjectUtil.isEmpty(aliasName)) {
			return name;
		} else {
			return aliasName;
		}

	}

	public String getName() {
		return name;
	}

	public void setMainOutputDsKey(String mainOutputDsKey) {
		this.mainOutputDsKey = mainOutputDsKey;
	}

	public String getMainOutputDsKey() {
		return mainOutputDsKey;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DsType getType() {
		return type;
	}

	public void setType(DsType type) {
		this.type = type;
	}

}